﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace ST.Torch.WebApi.Core.Entities.DaTi
{
    public class D_UserInfor : BaseEntity, IEntityTypeBuilder<D_UserInfor>
    {
        /// <summary>
        /// 用户OpenId
        /// </summary>
        [MaxLength(500)]
        public string OpenId { get; set; }
        /// <summary>
        /// 公司代码
        /// </summary>
        [MaxLength(500)]
        public string C_Code { get; set; }
        /// <summary>
        /// 状态 0 参议 1答题完成
        /// </summary>
        public int Starte { get; set; }


        /// <summary>
        /// 公司名称
        /// </summary>
        [MaxLength(500)]
        public string C_Name { get; set; }
        /// <summary>
        /// 获奖礼物名称
        /// </summary>
        [MaxLength(500)]
        public string G_Name { get; set; }
        /// <summary>
        /// 获奖礼物名称
        /// </summary>
        [MaxLength(500)]
        public string G_ImgUrl { get; set; }
        public void Configure(EntityTypeBuilder<D_UserInfor> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
            entityBuilder.HasKey(u => u.Id);

            
        }
    }
}
